﻿

namespace UserDemo
{
    /// <summary>
    /// 登录信息
    /// </summary>
    public class LoginInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        public string LoginName { get; set; }

        public string NickName { get; set; }

        /// <summary>
        /// 角色名
        /// </summary>
        public Role Role { get; set; }
    }

    /// <summary>
    /// 角色类型
    /// </summary>
    public enum Role
    {
        /// <summary>
        /// 无角色
        /// </summary>
        None,

        /// <summary>
        /// 用户
        /// </summary>
        User,

        /// <summary>
        /// 管理员
        /// </summary>
        Admin
    }
}